]> dgit.raspbian.org Git - gnome-shell.git/commit
loginDialog: only emit session-activated on user action
authorRay Strode <rstrode@redhat.com>
Thu, 13 Nov 2014 14:26:52 +0000 (09:26 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 20 Feb 2018 15:27:08 +0000 (10:27 -0500)
commite1d9bdbbd61d03cd6d3c5dec79b398122aeff832
treecf021ac9b57529453158d472cd7d2e54f214ee02
parent58827ba36d7b88a3c1be6bbaa5b6e07a4e6fa15c
loginDialog: only emit session-activated on user action

Right now we emit session-activated any time the bullet
moves in the session menu. That includes at startup when
picking an item arbitrarily, and any time GDM reports the
session was read from the user's account settings.

session-activated informs GDM about the newly selected session,
so emitting it in response to GDM reporting a session is a
bad idea.

This commit changes the code to only emit session-activated when
the user explicitly activates a session item from the gear menu.

Note, we no longer set the active session explicitly at start up.
This is a good thing since the item we were picking wasn't
necessarily correct.  It does means if GDM fails to inform us
about the correct default session we'll now show no bullet instead
of a bullet on the wrong item.

https://bugzilla.gnome.org/show_bug.cgi?id=740142
js/gdm/loginDialog.js